import whiteList from "./whiteList.js";

const routes = [
  {
    path: "/home",
    name: "home",
    component: () => import("@/views/Menu/MainLayout.vue"),
    children: [
      {
        path: "/fileStart",
        name: "fileStart",
        index: "3",
        title: "文件内容查重",
        component: () => import("@/views/File/fileStart.vue"),
      },
      {
        path: "/fileEnd",
        name: "fileEnd",
        index: "3",
        title: "文件内容查重",
        hidden: true,
        component: () => import("@/views/File/fileEnd.vue"),
      },
      {
        path: "/know",
        name: "know",
        index: "4",
        title: "知识库管理",
        component: () => import("@/views/know/knowIndex.vue"),
      },
    ],
  },
  ...whiteList,
  {
    path: "/",
    redirect: "/fileStart",
  },
  { path: "/:pathMatch(.*)*", redirect: "/NoPermissin" },
];

export default routes;
